let express=require('express');
let router=express.Router();
let personalDao=require('../dao/personalDao');
// let multiparty = require('connect-multiparty');
// let multipartMiddleware = multiparty();

router.post('/queryPersonnalData', function(req,res,next){
    personalDao.queryPersonnalData(req,res,next);
});
router.post('/insertPersonalData', function(req,res,next){
    personalDao.insertPersonalData(req,res,next);
});
router.post('/insertDangersAlertData', function(req,res,next){
    personalDao.insertDangersAlertData(req,res,next);
});
router.post('/queryDangersAlertData', function(req,res,next){
    personalDao.queryDangersAlertData(req,res,next);
});

// router.post('/insertDangersAlertData',multipartMiddleware,function(req,res,next){
//     personalDao.insertDangersAlertData(req,res,next);
// });

module.exports=router;

